import java.util.Scanner;


public class AkkraBazzi {
	public static void main(String[] argv)
	{
		Scanner scan = new Scanner(System.in);
		for(int a = 0; a < 3; a++)
		{
			System.out.println(Calc(scan.nextDouble()));
		}
	}
	
	private static double Calc(double number)
	{
		if (number < 1)
			return 1;
		else
		{
			double first = ((20d/9d) * Calc(Math.floor(number/2d)));
			double second =  Calc(Math.floor((2d * number) / 3d));
			return first + second + number;
			
		}
	}
}
